TGML Sequences: <Sequence>

Sequence plays a sequence of graphical elements, for example, shapes, text, images, as a 'movie'.

The Interval attribute controls the "frame rate". Interval specifies for how long, measured in seconds, each graphical element is visible. The sequence can be started and stopped by setting the Animation attribute to "Start" and "Stop".

Sequence belongs to the immediate parent container element and controls the visibility of the container's graphical elements.

Attribute Type Description

Animation

Animation

Starts and stops the animation in Dynamic mode.
Default: "Start"
Inheritable: No
Animatable: Yes

Interval

Double

Specifies for how long, measured in seconds, each of the shapes in the container is to be visible.
Inheritable: Yes
Animatable: Yes

Example of TGML code containing a Sequence element:

Copy
<TGML>
    <Group>
        <Sequence Interval="1"/>
        <Rectangle Top="50.0" Left="50.0" Width="100" Height="100" Fill="#00FF00" Stroke="#000000" Visibility="Visible"/> 
        <Rectangle Top="50.0" Left="50.0" Width="100" Height="100" Fill="#FFFF00" Stroke="#000000" Visibility="Hidden"/> 
        <Rectangle Top="50.0" Left="50.0" Width="100" Height="100" Fill="#FF0000" Stroke="#000000" Visibility="Hidden"/> 
    </Group>
</TGML>

The example plays a sequence of three rectangles and the frame rate is set to one second. The Visibility attributes of the second and third rectangles are set to "Hidden" to hide them in Edit mode.